home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Database / mysql-max-3.23.55.sit / mysql-max-3.23.55-apple-darwi.1 / mysql-test / t / rpl000006.test < prev    next >
Encoding:
Text File  |  2003-01-21  |  1.0 KB  |  49 lines  |  [TEXT/ttxt]

  1. #
  2. # Test forced timestamp
  3. #
  4. source include/master-slave.inc;
  5. connection master;
  6.  
  7. # Don't log table creating to the slave as we want to test LOAD TABLE
  8. set SQL_LOG_BIN=0,timestamp=200006;
  9. drop table if exists t1;
  10. create table t1(t timestamp not null,a char(1));
  11. insert into t1 ( a) values ('F');
  12. select unix_timestamp(t) from t1;
  13. connection slave;
  14. drop table if exists t1;
  15. load table t1 from master;
  16. select unix_timestamp(t) from t1;
  17.  
  18. # Delete the created table on master and slave
  19. connection master;
  20. set SQL_LOG_BIN=1,timestamp=default;
  21. drop table t1;
  22. save_master_pos;
  23. connection slave;
  24. sync_with_master;
  25. connection master;
  26.  
  27. #
  28. # Test copying table with checksum
  29. #
  30.  
  31. # Don't log table creating to the slave as we want to test LOAD TABLE
  32. set SQL_LOG_BIN=0;
  33.  
  34. CREATE TABLE t1 (
  35.  a int not null
  36. ) TYPE=MyISAM MAX_ROWS=4000 CHECKSUM=1;
  37. INSERT INTO t1 VALUES (1);
  38. save_master_pos;
  39. connection slave;
  40. sync_with_master;
  41. load table t1 from master;
  42. check table t1;
  43. drop table t1;
  44. connection master;
  45. drop table t1;
  46. save_master_pos;
  47. connection slave;
  48. sync_with_master;
  49.